var main = require('./handlers/main.js'),
    vacation = require('./handlers/vacation.js'),
    contest = require('./handlers/contest.js'),
    dealer = require('./handlers/dealer.js');
customerController = require('./controller/customer.js');

module.exports = function (app) {
    app.get('/', main.home);
    app.get('/newsletter', main.newsletter);
    app.post('/newsletter', main.newsletterProcessPost);
    app.get('/newsletter/archive', main.newsletterArchive);
    app.get('/thank-you', main.genericThankYou);
    app.get('/about', main.about);

    app.get('/vacations', vacation.list);
    app.get('/vacation/:vacation', vacation.detail);
    app.get('/notify-me-when-in-season', vacation.notifyWhenInSeason);
    app.post('/notify-me-when-in-season', vacation.notifyWhenInSeasonProcessPost);

    app.get('/contest/vacation-photo', contest.vacationPhoto);
    app.post('/contest/vacation-photo/:year/:month', contest.vacationPhotoProcessPost);
    app.get('/contest/vacation-photo/entries', contest.vacationPhotoEntries);

    app.get('/dealer', dealer.list);

    customerController.registerRoutes(app);
};